package com.sigmatrix.h5.auth;

/**
 * 用户认证（登陆）的基本信息
 * 
 * @author wei.wang
 *
 */
public class AuthenticationInfo implements ILoginUser {

	/**
	 * 登陆的类型
	 */
	private String loginType;
	/**
	 * 登陆的用户名,账号。具有唯一性
	 */
	private String loginName;

	/**
	 * 账号类型CrmAcctType
	 */
	private Short acctType;

	/**
	 * 根据acctType进行判断：
	 * acctType 为经销商类型，该账号经销商的，该字段值为所属经销商Id值(多个经销商需要指定)
	 * acctType 为门店类型，该账号门店的，该字段值为所属门店Id值
	 */
	private Integer dealerOrShopId;
	/**
	 * 用户类别1:管理员 2:业务员
	 */
	private Short userType;
	
	/**
	 * 用户的手机号
	 */
	private String phoneNumber;

	/**
	 * 用户在acct表中的主键id。或userId
	 */
	private Integer acctId;

	/**
	 * 用户的微信openId
	 */
	private String openId;

	/**
	 * 用户的监护人
	 */
	private String dealersAcctPromotionCode;

	/**
	 * 公司在top平台Id
	 */
	private Integer basicModuleEseId;

	/**
	 * 公司code
	 */
	private String eseCode;
	/**
	 * 公司Id
	 */
	private Integer eseId;
	/**
	 * 公司Name
	 */
	private String eseName;

	/**
	 * 公司对应的公众号id
	 */
	private String appId;

	/**
	 * 和角色或权限关联的字段.用于查询角色或权限
	 * 
	 * @return
	 */
	public Integer getPrincipal() {
		return acctId;
	}

	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public String getEseCode() {
		return eseCode;
	}

	public void setEseCode(String eseCode) {
		this.eseCode = eseCode;
	}

	public Short getAcctType() {
		return acctType;
	}

	public void setAcctType(Short acctType) {
		this.acctType = acctType;
	}

	public Integer getBasicModuleEseId() {
		return basicModuleEseId;
	}

	public void setBasicModuleEseId(Integer basicModuleEseId) {
		this.basicModuleEseId = basicModuleEseId;
	}

	public Integer getEseId() {
		return eseId;
	}

	public void setEseId(Integer eseId) {
		this.eseId = eseId;
	}

	public Integer getAcctId() {
		return acctId;
	}

	public void setAcctId(Integer acctId) {
		this.acctId = acctId;
	}

	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}

	public String getDealersAcctPromotionCode() {
		return dealersAcctPromotionCode;
	}

	public void setDealersAcctPromotionCode(String dealersAcctPromotionCode) {
		this.dealersAcctPromotionCode = dealersAcctPromotionCode;
	}

	public String getPhoneNumber() {
		return phoneNumber;
	}

	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}

	public String getAppId() {
		return appId;
	}

	public void setAppId(String appId) {
		this.appId = appId;
	}

	public String getLoginType() {
		return loginType;
	}

	public void setLoginType(String loginType) {
		this.loginType = loginType;
	}

	public String getEseName() {
		return eseName;
	}

	public void setEseName(String eseName) {
		this.eseName = eseName;
	}

	public Integer getDealerOrShopId() {
		return dealerOrShopId;
	}

	public void setDealerOrShopId(Integer dealerOrShopId) {
		this.dealerOrShopId = dealerOrShopId;
	}

	public Short getUserType() {
		return userType;
	}

	public void setUserType(Short userType) {
		this.userType = userType;
	}
	

}
